package com.kasax.ipcbus.bean;


import java.util.Arrays;

/**
 * 请求实例Bean
 */
public class RequestBean {
    /**
     * 请求单例的全类名
     */
    private String clsFullName;
    /**
     * 结果类名
     */
    private String resultClsName;
    /**
     * 返回方法的名字
     */
    private String methodName;

    /**
     * 参数
     */
    private RequestParameter[] requestParameters;

    public RequestBean() {
    }

    public RequestBean(String clsFullName, String resultClsName, String methodName, RequestParameter[] requestParameters) {
        this.clsFullName = clsFullName;
        this.resultClsName = resultClsName;
        this.methodName = methodName;
        this.requestParameters = requestParameters;
    }

    public String getClsFullName() {
        return clsFullName;
    }

    public void setClsFullName(String clsFullName) {
        this.clsFullName = clsFullName;
    }

    public String getResultClsName() {
        return resultClsName;
    }

    public void setResultClsName(String resultClsName) {
        this.resultClsName = resultClsName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public RequestParameter[] getRequestParameters() {
        return requestParameters;
    }

    public void setRequestParameters(RequestParameter[] requestParameters) {
        this.requestParameters = requestParameters;
    }

    @Override
    public String toString() {
        return "RequestBean{" +
                "clsFullName='" + clsFullName + '\'' +
                ", resultClsName='" + resultClsName + '\'' +
                ", methodName='" + methodName + '\'' +
                ", requestParameters=" + Arrays.toString(requestParameters) +
                '}';
    }
}
